//
//  EPOSDiscountTicket.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-08 14:24:00
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSDiscountTicket.h"

@implementation EPOSDiscountTicket

+(id) getEPOSDiscountTicketFromDictionary :(NSDictionary *) dic {
    EPOSDiscountTicket * discountTicket = [[EPOSDiscountTicket alloc]init] ;
    discountTicket.Result = [dic objectForKey:@"Result"];
    discountTicket.ErrMessage = [dic objectForKey:@"ErrMessage"];
    discountTicket.ErrSysTrackMessage = [dic objectForKey:@"ErrSysTrackMessage"];
    discountTicket.ErrSysMessage = [dic objectForKey:@"ErrSysMessage"];
    discountTicket.Message = [dic objectForKey:@"Message"];
    discountTicket.VIPCode = [dic objectForKey:@"VIPCode"];
    discountTicket.CouponEntity = [dic objectForKey:@"CouponEntity"];
    discountTicket.VIPID = [dic objectForKey:@"VIPID"];
    discountTicket.JsonData = [dic objectForKey:@"JsonData"];
    return discountTicket ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSDiscountTicket :(EPOSDiscountTicket* ) discountTicket {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:discountTicket.Result forKey:@"Result"];
    [dic setObject:discountTicket.ErrMessage forKey:@"ErrMessage"];
    [dic setObject:discountTicket.ErrSysTrackMessage forKey:@"ErrSysTrackMessage"];
    [dic setObject:discountTicket.ErrSysMessage forKey:@"ErrSysMessage"];
    [dic setObject:discountTicket.Message forKey:@"Message"];
    [dic setObject:discountTicket.VIPCode forKey:@"VIPCode"];
    [dic setObject:discountTicket.CouponEntity forKey:@"CouponEntity"];
    [dic setObject:discountTicket.VIPID forKey:@"VIPID"];
    [dic setObject:discountTicket.JsonData forKey:@"JsonData"];
    return dic ;
}

@end